﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Default.Master" Inherits="System.Web.Mvc.ViewPage<AbstractSaaSTemplate.UI.Web.Models.User.LogOnForm>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"><%: Metadata.RootMemberLogOnTitle %></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MetaDescription" runat="server"><%: Metadata.RootMemberLogOnDescription%></asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MetaKeywords" runat="server"><%: Metadata.RootMemberLogOnKeywords%></asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="H1Content" runat="server"><%: Metadata.RootMemberLogOnTitle%></asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="InnerBodyClass" runat="server">root logon</asp:Content>

<asp:Content ID="Content6" ContentPlaceHolderID="MainContent" runat="server">
    <section class="info">
        <%: Messages.HaveNotYouAlreadyGotAnAccount %>
        <%: Html.ActionLink(Messages.PleasePerformRegistration, "Register", "Tenant")%>
    </section>
    
    <% using (Html.BeginForm()) { %>
        <%: Html.ValidationSummary(string.Concat(
            Messages.NotPossibleToAuthenticate,
            Messages.PleaseTryAgain)) %>
        
        <fieldset>
            <legend><%: Expressions.LogOn %></legend>

            <%: Html.LabelFor(model => model.Login)%>
            <%: Html.TextBoxFor(model => model.Login)%>
            <%: Html.ValidationMessageFor(model => model.Login)%>

            <%: Html.LabelFor(m => m.Password) %>
            <%: Html.PasswordFor(m => m.Password) %>
            <%: Html.ValidationMessageFor(m => m.Password) %>

            <%: Html.CheckBoxFor(m => m.RememberMe) %>
            <%: Html.LabelFor(m => m.RememberMe) %>
                
            <footer>
                <%: Html.AntiForgeryToken() %>
                <input type="submit" value="<%: Expressions.Ok %>" />
            </footer>
        </fieldset>

    <% } %>
</asp:Content>

<asp:Content ID="Content7" ContentPlaceHolderID="StylesReferences" runat="server">
</asp:Content>

<asp:Content ID="Content8" ContentPlaceHolderID="JavascriptReferences" runat="server">
</asp:Content>